package com.qianli.cashmama.product.server;


import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author zsp
 */
@SpringBootApplication
@ComponentScan(basePackages = {
        "com.fqgj.common",
        "com.qianli.cashmama"
})
@EnableScheduling
@EnableTransactionManagement
@MapperScan("com.qianli.cashmama.product.server.mapper")
@ImportResource({"classpath*:app-redis.xml", "classpath:config.xml", "classpath:dubbo-provider.xml"})
//@NacosPropertySources({
//        @NacosPropertySource(dataId = "dc-product", autoRefreshed = true)
//})
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);

    }
}
